
local frame = CreateFrame("Frame", nil, CharacterFrame)
local dataobj = LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject("RoF_Durability", 
{type = "data source", icon = "Interface\\Minimap\\Tracking\\Repair", text = "100%"})

local SLOTIDS = {}
for _,slot in pairs(
{"Head", "Shoulder", "Chest", "Waist", "Legs", "Feet", 
"Wrist", "Hands", "MainHand", "SecondaryHand", "Ranged"}) 
  do SLOTIDS[slot] = GetInventorySlotInfo(slot .. "Slot") end